package com.ndp.fb.walle.model.vo.user.result;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * Elvis by 07/13
 */
@Setter
@Getter
@NoArgsConstructor
public class MenuVo  implements Serializable ,Comparable<MenuVo>{

    //菜单编号
    private Long key;
    //value
    private String value;
    //url
    private String url;
    //icon
    private String icon;
    //子菜单
    private List<MenuVo> son;

    @Override
    public int compareTo(MenuVo o) {
        return key.compareTo(o.key);
    }
}
